package com.fayakeji.ucpaas;

import java.util.Arrays;
import java.util.Objects;

/**
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 2019-06-13 21:52
 */
public class UcpassSmsBatchResponse {

    private String code;

    private String msg;

    private String count_sum;

    private String create_date;

    private UcpassSmsSingleResponse[] report;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCount_sum() {
        return count_sum;
    }

    public void setCount_sum(String count_sum) {
        this.count_sum = count_sum;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(String create_date) {
        this.create_date = create_date;
    }

    public UcpassSmsSingleResponse[] getReport() {
        return report;
    }

    public void setReport(UcpassSmsSingleResponse[] report) {
        this.report = report;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UcpassSmsBatchResponse that = (UcpassSmsBatchResponse) o;
        return Objects.equals(code, that.code) &&
                Objects.equals(msg, that.msg) &&
                Objects.equals(count_sum, that.count_sum) &&
                Objects.equals(create_date, that.create_date) &&
                Arrays.equals(report, that.report);
    }

    @Override
    public int hashCode() {
        int result = Objects.hash(code, msg, count_sum, create_date);
        result = 31 * result + Arrays.hashCode(report);
        return result;
    }

    @Override
    public String toString() {
        return "UcpassSmsBatchResponse{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", count_sum='" + count_sum + '\'' +
                ", create_date='" + create_date + '\'' +
                ", report=" + Arrays.toString(report) +
                '}';
    }
}
